home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form dosshell
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- Caption = "DSL"
- ClientHeight = 1590
- ClientLeft = 3765
- ClientTop = 1830
- ClientWidth = 1815
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1995
- Icon = DSL.FRX:0000
- Left = 3705
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1590
- ScaleMode = 0 'User
- ScaleWidth = 1815
- Top = 1485
- Width = 1935
- Begin CommandButton EndShell
- Caption = "End"
- Height = 384
- Left = 1152
- TabIndex = 1
- Top = 1024
- Width = 512
- End
- Begin CommandButton Launch
- Caption = "Launch"
- Height = 384
- Left = 128
- TabIndex = 0
- Top = 1024
- Width = 900
- End
- Begin Label Fremem
- Alignment = 2 'Center
- Height = 390
- Left = 15
- TabIndex = 3
- Top = 480
- Width = 1770
- End
- Begin Label WinMode
- Alignment = 2 'Center
- Height = 300
- Left = 45
- TabIndex = 2
- Top = 60
- Width = 1740
- End
- DefInt A-Z
- Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
- Declare Function GetWinFlags Lib "Kernel" () As Long
- Sub EndShell_Click ()
- End
- End Sub
- Sub Form_Load ()
- winflags = GetWinFlags()
- Select Case winflags And &H30
- Case &H10
- WinMode.Caption = "Standard Mode"
- Case &H20
- WinMode.Caption = "386 Enhanced Mode"
- Case Else
- WinMode.Caption = "UI [" + Hex$(winflags) + "] mode"
- End Select
- Fremem.Caption = Format$(GetFreeSpace(0), "###,###,###") + " bytes"
- End Sub
- Sub Launch_Click ()
- X = Shell("command.com")
- winflags = GetWinFlags()
- Select Case winflags And &H30
- Case &H10
- WinMode.Caption = "Standard Mode"
- Case &H20
- WinMode.Caption = "386 Enhanced Mode"
- Case Else
- WinMode.Caption = "UI [" + Hex$(winflags) + "] mode"
- End Select
- Fremem.Caption = Format$(GetFreeSpace(0), "###,###,###") + " bytes"
- End Sub
- Sub Shellout_Click ()
- X = Shell("C:\command.com")
- End Sub
-